<!-- Breadcrums -->
<div class="container">
	<ul id="breadcrumbs">
	<?php foreach ($breadcrumbs as $key => $breadcrumb) { ?>
	<?php if($key == 0) {  ?>
		<li><a href="<?php echo $breadcrumb['href']; ?>"><i class="icon-home"></i></a></li>
		<?php } else { ?>
		<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li>
		<?php } ?>
		<?php } ?>
	</ul>
</div>
<!-- Breadcrum -->
<div class="container">
	<div id="main">
		<div class="row">
			<div class="span9">
				<h1 class="page-header">Listing Map</h1>
				<div class="map-wrapper">
					<div class="map">
					<div id="map" class="map-inner"></div>
					<!-- /.map-inner --></div>
					<!-- /.map -->
				</div>
			<!-- /.map-wrapper -->
			</div>
		<div class="span3">
			<div class="property-filter pull-right">
				<div class="content">
					<form method="get" action="<?php echo base_url(); ?>listing-map.html?">
						<input type="hidden" id="localorint" name="localorint" value="0"> 
						<div class="location control-group"><label class="control-label" for="inputLocation"> Location </label>
							<div class="controls"><select id="inputLocation" name="cities">
								<option value="" id="all-location"><?php echo $text_all_location; ?></option>
								<?php if(count($lkup_cities) > 0) { ?>
								<?php foreach ($lkup_cities as $city) { ?>
								<option value="<?php echo $city->City_ID; ?>" <?php if(is_array($cities) && count($cities) > 0 && in_array($city->City_ID, $cities)) {echo 'selected="selected"';} ?>><?php echo $city->Name; ?></option>
								<?php } ?>
								<?php } ?>
							</select></div>
							<!-- /.controls -->
						</div>
						<!-- /.control-group -->
						
						<div class="type control-group"><label class="control-label" for="inputType"> Type </label>
							<div class="controls">
								<select name="propertytype" id="propertytype">
									<option value="" selected="selected"><?php echo $text_all; ?></option>
									<?php if(count($dd_propertytype) > 0) {
										foreach ($dd_propertytype as $key => $value) {
									?>
									<option value="<?php echo $value->PropertyType_ID; ?>" <?php if(isset($propertytype) && $propertytype == $value->PropertyType_ID) {echo 'selected="selected"';} ?>><?php echo $value->Name; ?></option>
									<?php }
									}
									?>
								</select>
							</div>
							<!-- /.controls -->
						</div>
						<!-- /.control-group -->
						
						<div class="rent control-group">
							<div class="controls"><label class="radio" for="inputRent"> 
							<!--        <input type="radio" id="inputRent" name="propertyfor" value="rent"> Rent -->
							    </label>
							</div>
						<!-- /.controls -->
						</div>
						<!-- /.control-group -->
						
						<div class="sale control-group">
							<div class="controls"><label class="radio" for="inputSale"> <input
								type="radio" id="inputSale" name="propertyfor" checked="checked"
								value="sale"> Sale </label></div>
							<!-- /.controls -->
						</div>
						<!-- /.control-group -->
						
						<div class="beds control-group"><label class="control-label" for="inputBeds"> Bedrooms </label>
							<div class="controls">
								<select name="bedrooms" id="bedrooms" class="span12">
									<option selected="selected" value=""><?php echo $text_all; ?></option>
									<?php for ($i = 1; $i < 10; $i++) { ?>
									<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
									<?php } ?>
								</select>
							</div>
							<!-- /.controls -->
						</div>
						<!-- /.control-group -->
						
						<div class="baths control-group"><label class="control-label" for="inputBaths"> Bathrooms </label>
							<div class="controls">
								<select name="bathrooms" id="bathrooms"
									class="span12">
									<option selected="selected" value=""><?php echo $text_all; ?></option>
									<?php for ($i = 1; $i < 10; $i++) { ?>
									<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
									<?php } ?>
								</select>
							</div>
							<!-- /.controls -->
						</div>
						<!-- /.control-group -->
					</form>
				</div>
				<!-- /.content -->
			</div>
			<!-- /.property-filter -->
		</div>
		<!-- /.span3 -->
		</div>
	</div>
</div>
